﻿@model Domain.Dto.AdvertiseDto
@{
    if (Model != null && string.IsNullOrEmpty(Model.Url))
    {
        Model.Url = "http://";
    }
}
@Html.ValidationSummary(true)
<div class="editor-label">
    @Html.LabelFor(model => model.Name)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Name)
    @Html.ValidationMessageFor(model => model.Name)
</div>
<div class="editor-label">
    @Html.LabelFor(model => model.Remark)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Remark)
    @Html.ValidationMessageFor(model => model.Remark)
</div>
<div class="editor-label" style="float: left; margin-top: 5px;">
    @Html.LabelFor(model => model.ExpiredDateTime)
</div>
<div class="editor-field" style="float: left; margin-top: 5px;">
    @Html.EditorFor(model => model.ExpiredDateTime)
    @Html.ValidationMessageFor(model => model.ExpiredDateTime)
</div>
<div class="editor-label" style="clear: both;">
    @Html.LabelFor(model => model.Url)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Url)
    @Html.ValidationMessageFor(model => model.Url)
</div>
<div style="display: none;">
    @Html.HiddenFor(model => model.AddTime)
    @Html.HiddenFor(model => model.IpAddress)
    @Html.HiddenFor(model => model.State)
    @Html.HiddenFor(model => model.SortNum)
</div>
